Description:
ULVFP detects unused local variables and formal parameters. Note that unlike C++ it is not possible to omit a formal parameter name preserving method signature. It is often the case where a method overriding a base class method must declare a parameter it does not actually need. Such situations are detected and do not produce a warning message.
Incorrect:
public class Label {
private string name;
public string GetName(bool upperCase) {
string end;
return name;
}
}
Correct:
public class Label {
private string name;
public string GetName() {
return name;
}
}
Refactoring: